import defaultSettings from '@/settings'
import request from '@/utils/request'

export const apiUrlConfig = {
    queryUrl: `${defaultSettings.ctx.cnapsApp}/feeManage/FeeManageApprove/search`,
}

export const detailsApiUrlConfig = {
  queryUrl: `${defaultSettings.ctx.cnapsApp}/feeManage/FeeManageApprove/searchDetail`,
}


// 审核按钮
export function approve(data) {
  return request({
    url: `${defaultSettings.ctx.cnapsApp}/feeManage/FeeManageApprove/approve`,
    method: 'post',
    data
  })
}

// 审核按钮
export function reject(data) {
  return request({
    url: `${defaultSettings.ctx.cnapsApp}/feeManage/FeeManageApprove/reject`,
    method: 'post',
    data
  })
}

// 明细详情
export function detail(params) {
  return request({
      url: `${defaultSettings.ctx.cnapsApp}/feeManage/FeeManageApprove/detail`,
      method: 'get',
      params
  })
}